{config_load file=info.conf section="links"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#title#}</title>
{#css_style#}{#css_flipPage#}{#js_query#}
	<link href="/scripts/jquery-ui-1.9.1.custom/css/ui-lightness/jquery-ui-1.9.1.custom.css" rel="stylesheet">
	<script src="/scripts/jquery-ui-1.9.1.custom/js/jquery-ui-1.9.1.custom.min.js"></script>
<style type="text/css">
{literal}
.table_yj{width:100%;margin-top:5px;}
.th1_yj{color:#444;background-color: rgb(255,232,196);text-align:center;border:1px solid rgb(255,204,127); height:25px; font-size:14px; font-family:"微软雅黑";line-height:15px;font-weight:bold;}
.th2_yj{color:#444;background-color: rgb(255,232,196);text-align:center;border:1px solid rgb(255,204,127); height:20px; font-size:12px; font-family:"微软雅黑";line-height:15px;font-weight:bold;}
.table_yj td{font-family:Arial;color:#666; background-color: rgb(255,255,255);text-align:center; line-height:16px; border:1px solid rgb(255,204,127);height:40px;}
{/literal}
</style>
</head>
<body>
{include file="head.tpl"}
 <div class="waps">
       <div class="con">     
            <div  class="nopa">
            	<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
                    <div class="pbox">
				<!--左框架开始 -->
						{include file="railway_m_left.tpl"}
						<!--左框架结束-->
						<div class="ls_rbox">
							<div class="am_title"><span class="lsfonts_r">【始发站 -> 中转站】列表 </span></div>
							<div class="listers">
                            <div style=" height:28px;">
							<table align="right" > 
								<tr>  
								<td valign="middle">
									始发站：<input id="sz" type="text" class="step_txt" style="width:80px;padding-left:2px;" value="{$sz}"/>
									中转站：<select name="zz" id="zz">
                                          		<option value=""></option>
	                                          		{section name=results loop=$tran}
	                                          		<option value="{$tran[results]}" {if $zz==$tran[results]}selected="selected"{/if}>{$tran[results]}</option>
	                                          		{/section}
                                          		</select>
								</td> 
								<td valign="middle"> 
									<input type="button" class="btn_such" style=" margin-left:5px" onclick="search(0);"/> 
								</td> 
								<td valign="middle"> 
									<input type="button" class="btn_suchall" style=" margin-left:5px" onclick="search(1);"/> 
								</td> 
								</tr> 
							</table>
                            </div>
					
                            <table class="table_yj">
								<tr>
								    <th class="th1_yj">始发站</th>
								    <th class="th1_yj">中转站</th>
								    <th colspan="3" class="th1_yj">人民币（CNY）报价</th>
								    <th class="th1_yj">箱方案</th>
								    <th class="th1_yj">有效期</th>
								     <th class="th1_yj">备注</th>
								     <th class="th1_yj">操作</th>
								  </tr>
								  <tr>
								    <th class="th2_yj"> Departure station</th>
								    <th class="th2_yj">Border</th>
								    <th class="th2_yj">20'</th>
								    <th class="th2_yj">40'GP</th>
								    <th class="th2_yj">40'HC</th>
								    <th class="th2_yj">Container</th>
								    <th class="th2_yj">Valid</th>
								    <th class="th2_yj">Remark</th>
								    <th class="th2_yj">Op</th>
								  </tr>
                               {section name=results loop=$userdata}
								<tr>
									<td>{$userdata[results].start}</td>
									<td>{$userdata[results].border}</td>							
									<td>￥{$userdata[results].p20|number_format}</td>
									<td>￥{$userdata[results].p40gp|number_format}</td>
									<td>￥{$userdata[results].p40hc|number_format}</td>
									<td>{$userdata[results].box}</td>
									<td>{$userdata[results].stime|date_format:"%Y-%m-%d"}</td>
									<td><a href="javascript:void(0)" onclick="$('#info_{$smarty.section.results.index}').fadeIn(1000);">查看</a></td>
									<td><a href="modify_sz.php?i={$userdata[results].id}">修改</a> 
									<a href="javascript:del('{$userdata[results].id}');">删除</a></td>
								</tr>
								<tr id="info_{$smarty.section.results.index}" style="display:none;]">
									<td colspan="10">
										<div  class="warning">
											<div class="hot_title">备注：</div>
											<div class="toclose"><img src="../images/close.png" onclick="$('#info_{$smarty.section.results.index}').fadeOut(1000);"/></div>
											{$userdata[results].remark|lline}
										</div>
									</td>
								</tr>
								{sectionelse}<tr><td colspan="9">没有搜索到任何记录！</td></tr>{/section}
                                </table>
                                <table class="zhushi" width="100%">
                              	<tr>
                              	<td align="right">
                                	<input style="margin-right:10px;"  type="button" class="btn_tj" onclick="self.location.href = 'modify_sz.php'"/>
                            	</td></tr>
                            	</table>
                            	<div class="digg">{$pagination}</div> 
                            </div>
						</div>
						<!--右框架结束-->
					<div class="clear"></div>
</div></div></div></div>
{include file="foot.tpl"}
<script type="text/javascript">
var ss={$start}
{literal}
$(document).ready(function(){
	$( "#sz" ).autocomplete({source: ss});
});
function del(i){
	if(confirm('确定要删除本条数据吗?')){
		var params ={act:"del",i:i};
		$.post('list_sz.php',params,function(data) {
			if(data>0){
				window.location.reload();
			}else{
				alert(data);
			}
		});	
	}
}
function search(i){
	var sz="";
	var zz="";
	var ze="";
	var zc="";
	if(i==0) sz=encodeURIComponent($.trim($("#sz").attr("value")));
	if(i==0) zz=encodeURIComponent($.trim($("#zz").attr("value")));
	//if(i==0) zc=encodeURIComponent($.trim($("#zc").attr("value")));
	//if(i==0) ze=encodeURIComponent($.trim($("#ze").attr("value")));
	window.location = "list_sz.php?sz="+sz+"&zz="+zz;
}
</script>{/literal}
</body>
</html>